IK Load Effect


IK Load Effect Filename, Effect

Description

This command will compile an effect from a .fx file. If the compilation failed, an error message will appear with the compilation error for debugging. You can use this effect to draw to the screen or to target images.

The compilation of effect files for Image Kit is different in several ways from DarkBasic Professional. Image Kit doesn't load internal resources that might be specified in the effect file (Like string ResourceName = "filename.bmp";). Instead, resources have to be loaded explicitly using the Load Image command, and then assigned to their appropriate texture using IK Set Effect Texture. Also, vertex shaders will only affect the rendering quad. The purpose of this command is to enable the user the use of pixel shaders, and Image Kit is also designed that way.

Parameters

FilenameStringThe filename of the effect that has to be loaded.
EffectIntegerThe ID of the effect.


Index